package com.bw.service;


import com.bw.entity.Book;
import org.springframework.stereotype.Service;

@Service
public class BookServiceImpl implements BookService{
    /**
     * 开闭原则
     *
     * 开发效率低  大量重复代码
     * 跟业务代码严重耦合
     * @param book
     * @return
     */
    @Override
    public Integer addBook(Book book) {

        System.out.println("BookServiceImpl 正在执行 addBook");

        return 1;
    }

    @Override
    public Integer updateBook(Book book) {
        System.out.println("BookServiceImpl 正在执行 updateBook");

        return 1;
    }

    @Override
    public Integer delBook(Book book) {

        System.out.println("BookServiceImpl 正在执行 delBook");

        return 1;
    }
}
